import { get } from './base'
import { commonParams, recordApiURL } from './config'

export function getBannerList() {
  return get(`${recordApiURL}/getBannerList`)
}

export function getRecommendList() {
  const data = Object.assign({}, commonParams, {
    platform: 'yqq',
    hostUin: 0,
    sin: 0,
    ein: 29,
    sortId: 5,
    needNewCode: 0,
    categoryId: 10000000,
    rnd: Math.random(),
    format: 'json'
  })
  return get(`${recordApiURL}/getDiscList`, data)
}

export function getAlbum(album) {
  return get(`${recordApiURL}/getAlbum`, {
    id: album.dissid
  })
}
